﻿<UserControl x:Class="OnlineVideos.AudioFavorite"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">

    <Grid x:Name="LayoutRoot">
        <Grid x:Name="AudioGrid">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="80"/>
            </Grid.RowDefinitions>
            <ListBox x:Name="lbxFavoriteaudio" Margin="0,-30,0,10" Grid.Row="0" SelectionChanged="lbxFavoriteaudio_SelectionChanged" Foreground="White">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" Height="100" VerticalAlignment="Top" >
                            <toolkit:ContextMenuService.ContextMenu>
                                <toolkit:ContextMenu>
                                    <toolkit:MenuItem Header="remove from favorites" Click="btnAudioFavSong_Click"/>
                                </toolkit:ContextMenu>
                            </toolkit:ContextMenuService.ContextMenu>
                            <Image Source="{Binding Songplay}" Height="43" Width="43" VerticalAlignment="Center" Margin="10,33,20,0"  Tag="{Binding Songplay}" x:Name="audioimg"/>
                            <TextBlock Text="{Binding Title}" Name="tblkchno" Margin="-2,30,0,0" Width="400" FontSize="28" VerticalAlignment="Center" TextWrapping="Wrap" Tag="{Binding Link}"/>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            <StackPanel Name="adstackplaudio" Grid.Row="1" Orientation="Vertical"  Margin="-4,3,0,0">
            </StackPanel>
            <Canvas>
                <TextBlock Canvas.Top="200" Canvas.Left="80" FontSize="28" x:Name="tblkFavNoAudio" Visibility="Collapsed" Foreground="White"/>
            </Canvas>
        </Grid>
    </Grid>
</UserControl>
